#! /usr/bin/env python

import os, sys
import pygame
import sleuth
import title
from pygame.locals import *
from helpers import *

if not pygame.font: print 'Warning, fonts disabled'
if not pygame.mixer: print 'Warning, sound disabled'

class PhotoDetective:

    def __init__(self, width=1024,height=768):
        pygame.init()
        self.width = width
        self.height = height
        self.screen = pygame.display.set_mode((self.width
                                               , self.height), pygame.FULLSCREEN)
        self.game = sleuth.Game(self.screen)
        self.menu = title.Title(self.screen)

        print "modes: ", pygame.display.list_modes()
    def MainLoop(self):
        if self.menu.start() == 0:
            self.game.start()

if __name__ == "__main__":
    MainWindow = PhotoDetective(800, 480)
    MainWindow.MainLoop()
